import request from '@/utils/request'
// 获取列表
export function listBillRecord(data){
  return request({
    url: '/bill/page',
    method: 'post',
    data: data
  })
}

// 获取单个
export function getBillRecord(data){
  return request({
    url: '/bill/'+data,
    method: 'get'

  })
}

// 新增
export function addBillRecord(data){
  return request({
    url: '/bill',
    method: 'post',
    data: data
  })
}

// 编辑
export function updateBillRecord(data){
  return request({
    url: '/bill/page',
    method: 'post',
    data: data
  })
}

// 删除
export function deleteBillRecord(data){
  return request({
    url: '/bill/'+data,
    method: 'delete'

  })
}
/*
* 注意restFul风格的接口
* */
